{extend name="$_admin_base_layout" /} {block name="body"}
<div class="container-fluid" style="padding-top: 10px; background-color: rgb(240, 242, 245);">
    <div class="panel">
        <div class="panel-body">
            <form class="form-inline form-search">
                <div class="form-group">
                    <label>在岗状态：</label>
                    {html:select name="status" options="#teacher_status" selected="status" clazz="form-control" first="全部"/}
                </div>
                <div class="form-group">
                    <label>所属部门：</label>
                    {html:select name="office_id" options="office_tree" selected="office_id" clazz="form-control" first="全部"/}
                </div>
                <div class="form-group">
                    <label>员工类型：</label>
                    {html:select name="type" options="#teacher_type" selected="type" clazz="form-control" first="全部"/}
                </div>
                <div class="form-group">
                    <label>工号/姓名：</label>
                    <input type="text" class="form-control" name="title" value="{$title|default=''}">
                </div>
                <button type="submit" class="btn btn-primary">查询</button>
                <button type="button" class="btn btn-default btn-reset">重置</button>
            </form>
        </div>
        <!-- 数据表格 -->
        <table class="table table-sorter">
            <!-- 表头 -->
            <thead>
            <tr>
                <th style="width: 20px;">#</th>
                <th>工号</th>
                <th>姓名</th>
                <th>所在部门</th>
                <th>员工类型</th>
                <th>在岗状态</th>
                <th style="width: 110px;">操作</th>
            </tr>
            </thead>
            <!-- 列表 -->
            <tbody>
            {notempty name="data_list"} {volist name="data_list" id="info"}
            <tr>
                <td>{$i}</td>
                <td>{$info.name}</td>
                <td>{$info.title}</td>
                <td>{$info.office_text}</td>
                <td>{$info.type_text}</td>
                <td>{$info.status_text|raw}</td>
                <td>
                    <a href="{:url('edit',array('id'=>$info['id']))}" data-toggle="modal" data-icon="cogs"
                       data-title="编辑教师">编辑</a>
                    <a href="{:url('delete',array('id'=>$info['id']))}"
                       class="confirm ajax-get">删除</a></td>
            </tr>
            {/volist} {else/}
            <tr>
                <td class="text-center" colspan="5">aOh! 暂时还没有内容!</td>
            </tr>
            {/notempty}
            </tbody>
            <tfoot>
            <tr>
                <td colspan="5">
                    {$pager||raw}
                </td>
            </tr>
            </tfoot>
        </table>
    </div>
</div>
{/block}
{block name="sub_menu_action"}
<ul class="nav nav-pills" style="margin-right: 10px;">

    <li>
        <a href="{:url('add')}" data-toggle="modal" data-icon="cogs" data-title="新增教师">
            <i class="icon-plus"></i> 新增
        </a>
    </li>

</ul>
{/block}
